package com.agileboot.domain.airport.checkTerm.db;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SirCheckTermMapper extends BaseMapper<SirCheckTermEntity> {

    @Select({
            "<script>",
            "SELECT * FROM sir_check_term",
            "WHERE check_term_id IN",
            "<foreach collection='ids' item='id' open='(' separator=',' close=')'>",
            "#{id}",
            "</foreach>",
            "AND del_flag = '0'",
            "</script>"
    })
    List<SirCheckTermEntity> getByCheckTermIds(@Param("ids") List<Long> ids);
}
